<include file="./Tm/Dt/Top.html" />
		<div class="main">
			<include file="./Tm/Dt/Nav.html" />
			<div class="area">
				<div class="pad-20">
					<div class="panel panel-default linear">
					  	<div class="panel-heading title">提现记录</div>
					  	<div class="panel-body">
				    		<div class="row-fluid">
				    			<div class="span12">
				    				<div class="tabbable" id="tabs-402357">
										<ul class="nav nav-tabs">
										    <li class="active">
												<a href="#panel-401018" data-toggle="tab">提现记录</a>
											</li>
											<li >
												<a href="#panel-862181" data-toggle="tab">提现管理</a>
											</li>
											
										</ul>
										<div class="tab-content">
											<div class="tab-pane " id="panel-862181">
												<div class="h-30"></div>
												<form class="form-horizontal" action="/user/tx_form" method="post">
												  <div class="form-group">
												    <label for="inputEmail3" class="col-sm-2 control-label">提现日期</label>
												    <div class="col-sm-3 pad-top-4">
												      <p>提现日为每月的{$setting.txtime1}~{$setting.txtime2}号</p>
												    </div>
												  </div>
												  <!-- <div class="form-group">
												    <label for="inputPassword3" class="col-sm-2 control-label">银行账户</label>
												    <div class="col-sm-10 pad-top-8">
												      <label>
												      	<input type="radio" name="bank" id="" value="{$user.bank_name}---{$user.bank_num}---{$user.bank_username}---{$user.bank_zhi}" />
												      	{$user.bank_name}---{$user.bank_num}---{$user.bank_username}---{$user.bank_zhi}
												      </label>
												    </div>
												  </div> -->
												  <div class="form-group">
												    <label for="inputEmail3" class="col-sm-2 control-label">银行账户</label>
												    <div class="col-sm-3 pad-top-4">
												      <select name="yh">
												      <if condition="$kong.kong eq '1'" >
												      	<option value="mr">{$user.bank_name}---{$user.bank_num}---{$user.bank_username}---{$user.bank_zhi}</option>
												      </if>
												      	<foreach name='bank' item='v'>
												      	<option value="{$v.id}">{$v.bank_name}---{$v.bank_num}---{$v.bank_username}---{$v.bank_zhi}</option>
												      	</foreach>
												      	
												      </select>
												      
												    </div>
												  </div>
												  <div class="form-group">
												    <label for="inputEmail3" class="col-sm-2 control-label"></label>
												    <div class="col-sm-3 pad-top-4">
												      <p><a href="/user/xyhk.html" style="color: #428bca;">添加新的现金账户</a></p>
												    </div>
												  </div>
												  <div class="form-group">
												    <label for="inputEmail3" class="col-sm-2 control-label">提现钱包</label>
												    <div class="col-sm-3 pad-top-4">
												      <select name="zhc" id="zhc" onchange="gradeChange()">
												      <if condition="$setting.cash eq '1'" >
												      	<option value="1">直接提现钱包</option>
												      </if>
												      <!-- <if condition="$setting.half eq '1'" >
												      	<option value="2">季度分红钱包</option>
												      </if> -->
												      <if condition="$setting.year eq '1'" >
												      	<option value="3">半年分红钱包</option>
												      </if>
												      <if condition="$setting.zhi eq '1'" >
												      	<option value="4">直推奖钱包</option>
												      </if>
												      </select>
												      <input type="hidden" value="{$user.cashmoney}" id="cash">
				                                      <input type="hidden" value="{$user.halfmoney}" id="half">
				                                      <input type="hidden" value="{$user.yearmoney}" id="year">
				                                      <input type="hidden" value="{$user.zhitui}" id="zhi">
												    </div>
												  </div>
												  <div class="form-group">
												    <label for="inputPassword3" class="col-sm-2 control-label">账户余额</label>
												    <div class="col-sm-3 pad-top-8">
												      <p class="yue">{$user.cashmoney}</p>
												    </div>
												  </div>
												  <div class="form-group pp">
												    <label for="inputPassword3" class="col-sm-2 control-label">提现金额<span>*</span></label>
												    <div class="col-sm-3">
												      <input type="text" class="form-control" id="price" name="price" >
												    </div>
												  </div>
												  <div class="form-group">
												    <label for="inputPassword3" class="col-sm-2 control-label">提现总额</label>
												    <div class="col-sm-3 pad-top-8">
												      <p class="p1">0</p>
												    </div>
												  </div>
												  <div class="form-group">
												    <label for="inputPassword3" class="col-sm-2 control-label">手续费</label>
												    <div class="col-sm-3 pad-top-8">
												      <p class="p2">0</p>
												    </div>
												  </div>
												  <div class="form-group">
												    <label for="inputPassword3" class="col-sm-2 control-label">实际到账金额</label>
												    <div class="col-sm-3 pad-top-8">
												      <p class="p3">0</p>
												    </div>
												  </div>
												  <div class="form-group pp">
												    <label for="inputPassword3" class="col-sm-2 control-label">二级密码<span>*</span></label>
												    <div class="col-sm-3">
												      <input type="password" class="form-control" id="inputPassword3" name="mm2">
												    </div>
												  </div>
												  <div class="form-group">
												    <div class="col-sm-offset-2 col-sm-3">
												      <button type="submit" class="btn btn-primary">提交</button>
												    </div>
												  </div>
												</form>
											</div>
											<div class="tab-pane active" id="panel-401018">
												<div class="h-30"></div>
												<div class="table-responsive">
												  <table class="table">
												    <tr>
											    		<th>开户银行</th>
											    		<th>银行卡号</th>
											    		<th>开户姓名</th>
											    		<th>支行信息</th>
											    		<th>提现钱包</th>
											    		<th>提现金额</th>
											    		<!-- <th>汇率</th>
											    		<th>到账货币</th> -->
											    		<th>手续费</th>
											    		<th>实际到账金额</th>
											    		<th>状态</th>
											    		<th>日期</th>
											    		<!-- <th>操作</th> -->
												    </tr>
												    <foreach name='list' item='v'>
												    <tr>
												    	<td>{$v.bank_name}</td>
												    	<td>{$v.bank_num}</td>
												    	<td>{$v.bank_username}</td>
												    	<td>{$v.bank_zhi}</td>
												    	<td>{$v.txpay}</td>
												    	<td>{$v.price}</td>
												    	<!-- <td>1.00 : 7.00</td>
												    	<td>0.00</td> -->
												    	<td>{$v.sxfmoney}</td>
												    	<td>{$v.shjmoney}</td>
												    	<td>{$v.status}</td>
												    	<td>{$v.txtime|date="Y/m/d H:i:s",###}</td>
												    	<!-- <td></td> -->
												    </tr>
												    </foreach>
												  </table>
												</div>
												<div class="f-right">
												  <ul class="pagination">
												    {$page}
												  </ul>
												</div>
											</div>
										</div>
									</div>
				    			</div>
			    			</div>
					  	</div>
					</div>
				</div>
			</div>
		</div>
<include file="./Tm/Dt/Foot.html" />
<script type="text/JavaScript">
       function gradeChange(){
       	var str=$('#zhc').val();
       	if(str==1){
       		var yue=$('#cash').val();
       		// alert(yue);
       		$('.yue').text(yue);
       		
       	}else if(str==2){
       		var yue=$('#half').val();
       		// alert(yue);
       		$('.yue').text(yue);
       		
       	}else if(str==3){
       		var yue=$('#year').val();
       		// alert(yue);
       		$('.yue').text(yue);
       		
       	}else if(str==4){
       		var yue=$('#zhi').val();
       		// alert(yue);
       		$('.yue').text(yue);
       		
       	}

        
        
       }

       // function gradeChange2(){
       // 	var str1=$('#price').val(); 
       //  var str2=str1*0; 
       //  var str3=str1*1; 

       //  $('.p1').text(str1);
       //  $('.p2').text(str2);
       //  $('.p3').text(str3);

        
        
       // }
       
</script>
<script type="text/javascript">
// 失去焦点事件
$("#price").blur(function(){
    var str1=$('#price').val(); 
    var str2=str1*0.05; 
    var str3=str1*0.95; 

    $('.p1').text(str1);
    $('.p2').text(str2);
    $('.p3').text(str3);
    
});

</script>
